package ar.edu.uba.fi.jmit.aspecter.testUtils;

import javassist.CtClass;
import ar.edu.uba.fi.jmit.aspecter.core.injector.MethodInjector;

public class ExceptionInjectionAfter extends MethodInjector {
	
	public ExceptionInjectionAfter(String method, Class<?> returnType) {
		super(method);
	}

	@Override
	protected boolean mustInject(CtClass clazz) {
		return true;
	}
	
	@Override
	protected String getAfterCode() {
		return "throw new RuntimeException(\"injected!\");";
	}

}
